package cn.tom.respjson;

import java.util.HashMap;
import java.util.Map;

public class RespJson {
    //返回数据的格式
    public static Map<String, Object> pack(Integer code, String msg, Object obj) {
        Map<String, Object> map = new HashMap<>();
        map.put("code", code);
        map.put("msg", msg);
        map.put("data", obj);
        return map;
    }
}
